#include<iostream>

using namespace std;

int main()
{
	int num = 0;
	while (num < 10)
	{
		cout << num++ << endl;
	}


	num = 0;
	do {
		cout << num++ << endl;
	} while (num < 10);

	for (num = 0; num < 10; num++)
	{
		cout << num << endl;
	}

	system("pause");

	return 0;
}